import {Injectable, Injector} from '@angular/core';
import {Constant} from '@core/constant';
import {_HttpClient, SettingsService} from '@delon/theme';
import {MyHttpClient} from '../MyHttpClient';

@Injectable()
export class srmbomListService {
  get cnt(): Constant {
    return this.injector.get(Constant);
  }

  constructor(
    private injector: Injector,
    private http: _HttpClient,
    private myHttp: MyHttpClient,
    public setting: SettingsService,
  ) {
  }

  /**
   * 分页获取供应商
   */
  list(): string {
    return `${this.cnt.baseUrl}/rest/srm2BomController/list/` + this.setting.user.username;
  }


  /**
   * 分页获取供应商
   */
  listbyid(): string {
    return `${this.cnt.baseUrl}/rest/srm2BomController/listbyid/` + this.setting.user.username;
  }

  uploadcarinfo(): string {
    return `${this.cnt.baseUrl}/rest/srm2BomController/uploadexcel?username=` + this.setting.user.username;
  }



}
